package com.lihan.GetSeatInLib.Service;

import java.util.Set;

import com.lihan.GetSeatInLib.Domain.LibTable;
import com.lihan.GetSeatInLib.Exceptions.SeatNumOverException;

/**
 * 
 * @ClassName: LibTableService
 * @Description: 桌子业务接口
 * @author ASUS
 * @date 2022年3月3日
 *
 */
public interface LibTableService {
	
	Set<LibTable> getAllLibTale();
	
	LibTable getTibTableById(Long id);
	
	LibTable getTibTableByTableIndex(String TableIndex);
	
	boolean UpdateLibTable(LibTable table) throws SeatNumOverException;
	
	boolean DeleteTableById(Long id);
	
	boolean CreateNewTable(LibTable table);
	
	boolean LockSeat(Long ID);
	
	boolean UnLockSeat(Long ID);

}
